<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>TraceEvent.as</title>
<link rel="stylesheet" type="text/css" href="../../../../../../SourceStyles.css"/>
</head>

<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">com</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">sap</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">coe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">surface</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span>
<span class="ActionScriptBracket/Brace">{</span>
    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">com</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">sap</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">coe</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">surface</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Trace</span>;
    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">flash</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">events</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">Event</span>;
    
    <span class="ActionScriptASDoc">/**
     * Simple class dispatched on different trace events.
     * 
     * @author D045743
     */</span>
    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">TraceEvent</span> <span class="ActionScriptReserved">extends</span> <span class="ActionScriptDefault_Text">Event</span>
    <span class="ActionScriptBracket/Brace">{</span>
        <span class="ActionScriptComment">//=================================
</span>        <span class="ActionScriptComment">//===         EVENT CONSTANTS        ===
</span>        <span class="ActionScriptComment">//=================================
</span>        <span class="ActionScriptASDoc">/** A trace has been started. */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">TRACE_START</span> : <span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptString">"traceStart"</span>;
        
        <span class="ActionScriptASDoc">/** A trace has ended. */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">TRACE_END</span>   : <span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptString">"traceEnd"</span>;
        
        <span class="ActionScriptASDoc">/** A part of the trace faded out */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptReserved">const</span> <span class="ActionScriptDefault_Text">TRACE_FADE_OUT</span> : <span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptString">"traceFadeOut"</span>;

        <span class="ActionScriptComment">//=================================
</span>        <span class="ActionScriptComment">//===         PUBLIC VARIABLES    ===
</span>        <span class="ActionScriptComment">//=================================
</span>        <span class="ActionScriptASDoc">/** The trace referenced in this event (for TRACE_END). */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScripttrace">trace</span> : <span class="ActionScriptDefault_Text">Trace</span>; 

        <span class="ActionScriptComment">//=================================
</span>        <span class="ActionScriptComment">//===         CONSTRUCTOR            ===
</span>        <span class="ActionScriptComment">//=================================
</span>        <span class="ActionScriptASDoc">/**
         * Create a new TraceEvent.
         * @param type Type of the event (TRACE_START, TRACE_END, TRACE_FADE_OUT)
         * @param trace Optional trace reference
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">TraceEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">type</span> : <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptOperator">,</span> <span class="ActionScripttrace">trace</span> : <span class="ActionScriptDefault_Text">Trace</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span>
        <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptReserved">super</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">type</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptReserved">false</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptReserved">false</span><span class="ActionScriptBracket/Brace">)</span>;
            
            <span class="ActionScriptReserved">this</span><span class="ActionScriptOperator">.</span><span class="ActionScripttrace">trace</span> <span class="ActionScriptOperator">=</span> <span class="ActionScripttrace">trace</span>;
        <span class="ActionScriptBracket/Brace">}</span>
    <span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptBracket/Brace">}</span></pre></body>
</html>
